import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;

public class iCalender {
	
	public static void main(String[] args) throws IOException {
		File file = new File("exam.ics");
		BufferedWriter writer = new BufferedWriter(new FileWriter(file));
		
		writer.write("BEGIN:VCALENDAR");
		writer.newLine();
		writer.write("VERSION:2.0");
		writer.newLine();
		writer.write("BEGIN:VEVENT");
		writer.newLine();
		writer.write("CLASS:PUBLIC");
		writer.newLine();
		writer.write("SUMMARY:Study for exam");
		writer.newLine();
		writer.write("DTSTART;TZID=America/Hawaii:20140813T100000");
		writer.newLine();
		writer.write("DTSTART;TZID=America/Hawaii:20140813T130000");
		writer.newLine();
		writer.write("LOCATION:Hamilton Library");
		writer.newLine();
		writer.write("PRIORITY:0");
		writer.newLine();
		writer.write("END:VEVENT");
		writer.newLine();
		writer.write("END:VCALENDAR");
		writer.close();
		
		
		
		
		
		
		
	}
	
	
	
	
}